﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Aragorn.SOA.ORM
{
    public  static  class DapperWrapper
    {
        //读取配置文件中的连接字符串
        public static DbContext GetInstance()
        {
            return  new DbContext();

        }

        
        public static DbContext GetInstance(string connectionStr,DatabaseType databaseType=0)
        {
            return new DbContext().ConnectionString(connectionStr, DatabaseType.MSSQLServer);
        }

    }
}
